package com.example.module_home.model

import com.example.lib_common.view.entity.BaseResponse
import com.example.lib_common.view.entity.NoticeEntity
import com.example.lib_common.view.model.BaseRepository
import com.example.module_home.api.HomeApiServer
import javax.inject.Inject

class HomeRepository @Inject constructor(private val apiServer: HomeApiServer) {
    suspend fun loadNoticeData(pageIndex:Int,pageSize:Int):BaseResponse<List<NoticeEntity>>{
        return apiServer.loadNoticeData(pageIndex,pageSize)
    }
}